<?php
//全部配置
$config_arr = array(
    'version' => array(//版本号管理
        'admin' => '0.1',
        'www' => '0.1',
        'attention' => '0.1',
        'js' => '20130827152925',
        'css' => '20130827152925'
    ),
    'redis' => array(//Redis缓存配置
        'default' =>
        array (
            'node_01' =>
            array (
                'master' => '192.168.83.219:6379',
                //'slave'  => '192.168.83.219:63791',
                'slave'  => array(
                    '192.168.83.219:63791',
                    '192.168.83.219:63792'
                ),
            ),
        ),
        'log' =>
        array (
            'node_01' =>
            array (
                'master' => '192.168.83.219:6379',//50MB
            ),
        )
    ),
    'db' => array(//数据库配置
        'default'     =>  array(//mysql 数据库 配置 (推荐使用)
            'dbtype'    =>  'mysql',
            'dbuser'    =>  'u140953134_wf',
            'dbpswd'    =>  'u140953134_wf',
            'dbname'    =>  'u140953134_wf',
            'dbhost'    =>  'mysql.iguesth.com',
        ),
        'oracle'  =>  array(//oracle 数据库 配置
            'dbtype'    =>  'oci',
            'dbuser'    =>  'whoopsfeed',
            'dbpswd'    =>  'whoopsfeed',
            'dbname'    =>  'whoopsfeed',
            'dbhost'    =>  '',
        )
    ),
    'sdk' => array(
        'sina' => array(
            'APP_KEY'    	=> '721794163', //应用注册成功后分配的 APP ID
            'APP_SECRET' 	=> '748577c515132672f10740f0481fbacf', //应用注册成功后分配的KEY
            'CALLBACK'  	=> 'http://www.whoopsfeed.com/www/account.php?a=callback&type=sina',
        ),
    ),
    'status' => array(//全站统一审核状态码
        'name' => array(
            1=>'待审核',
            2=>'审核未通过',
            3=>'审核已通过',
            4=>'推荐列表页',
            5=>'推荐首页',
            6=>'推荐到移动端'
        ),
        'font_color'=> array(
            1=>'royalblue',
            2=>'red',
            3=>'green',
            4=>'blue',
            5=>'darkblue',
            6=>'orange',
        )
    ),
    'trend_type' => array(
        1=> '产品',
        2=> '资本',
        3=> '数据',
        4=> '人物',
        5=> '新闻'
    )
);
$curr_host = $_SERVER["HTTP_HOST"];

if($curr_host == 'new.whoopsfeed.com'){//家里本机XAMPP环境
    $config_arr['db']['default'] = array(
        'dbtype'    =>  'mysql',
        'dbuser'    =>  'root',
        'dbpswd'    =>  '',
        'dbname'    =>  'u140953134_wf',
        'dbhost'    =>  'localhost',
    );
}

if($curr_host == '192.168.83.219'){//公司自己虚拟机环境
    $config_arr['db']['default'] = array(
        'dbtype'    =>  'mysql',
        'dbuser'    =>  'admin',
        'dbpswd'    =>  '12345678',
        'dbname'    =>  'u140953134_wf',
        'dbhost'    =>  'localhost',
    );
}

?>